package com.example.internetplus.websocket.pojo;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;

@Data
@AllArgsConstructor
public class UserMessage {
    Long fromUser;
    Long toUser;
    String message;
    String datetime;

    @Override
    public String toString() {
        return "{" +
                "fromUser:" + fromUser +
                ", message:'" + message + ',' +
                ", datetime:'" + datetime + '\'' +
                '}';
    }
}
